home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3494 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.9 KB

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Date: Wed, 24 Jan 1996 12:37:05 GMT
  6. Organization: Netcom
  7. Message-ID: <3106260f.224013120@nntp.ix.netcom.com>
  8. References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl> <4dtv3gINNo9u@keats.ugrad.cs.ubc.ca> <SPENCER.96Jan22113215@zorgon.ERA.COM> <4e1nd8$hv0@solutions.solon.com> <3104bfc8.132251392@nntp.ix.netcom.com> <dewar.822407919@schonberg>
  9. NNTP-Posting-Host: ix-dc9-06.ix.netcom.com
  10. X-NETCOM-Date: Wed Jan 24  4:36:53 AM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. dewar@cs.nyu.edu (Robert Dewar) wrote:
  14.  
  15. > Michael says (talking about overflow in C)
  16. > "An implementation must handle this and must document how it does so."
  17. > Yes, of course the documentation may say that the result is to delete
  18. > your system disk. Even if a more reasonable behavior is described, any
  19. > program relying on such an implementation dependent feature is of
  20. > course compromising its portability. One of the troubles with C is
  21. > that it is oh-so-easy to introduce implementation dependence.
  22. > It is interesting to note that a number of "bug" reports sent into gcc
  23. > are complaints that GCC does not duplicate some implementation
  24. > dependent behavior seen in some other compiler.
  25.  
  26. Is it really necessary to post this kind of nonsense.  No, the
  27. documentation may not say the result is to delete your system disk.
  28. Repeating the quote from ISO 6.2.1.2
  29.  
  30.     When a value with integral type is demoted to a signed integer
  31.     with smaller size or an unsigned integer is converted to its 
  32.     corresponding signed integer, if the value cannot be 
  33.     represented the result is implementation defined.
  34.  
  35. This requires an implementation to convert the integral type.  It does
  36. not give it license to take actions not specified by the standard.
  37.  
  38.  
  39. Michael M Rubenstein
  40.